#!/bin/sh
# Render MP4s.app: starts the app with the Node.js it carries; its page opens in the browser.
# The app has no window of its own (LSUIElement): it quits from its page, or by itself 10 minutes after the page was closed.
R="$(cd "$(dirname "$0")/../Resources" && pwd)"
mkdir -p "$HOME/Library/Logs"
export IDLE_QUIT_MIN=10
cd "$R/app" && exec "$R/node" app.mjs >> "$HOME/Library/Logs/Render MP4s.log" 2>&1
